package com.hmdp.controller;/**
 * ClassName:UniqueVisitorController
 * Package:com.hmdp.controller
 * Description:
 *
 * @Date:2022/4/26 13:10
 * @Author:lzp
 */

import com.hmdp.dto.Result;
import com.hmdp.service.IUVService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * ClassName:UniqueVisitorController
 */
@Slf4j
@RestController
@RequestMapping("/uv")
public class UniqueVisitorController {

    @Resource
    private IUVService uvService;

    @GetMapping("/count")
    public Result getCounts(){
        return uvService.getCounts();
    }
}
